
set(SRC_PATH ${CMAKE_CURRENT_SOURCE_DIR}/src)

file(GLOB SRC_SOURCES ${SRC_PATH}/*)
add_library(lua-ddcl
    ${SRC_SOURCES}
    )



if(${BUILD_SHARED_LIBS})
    target_compile_definitions(lua-ddcl PUBLIC DDCLLUA_EXPORTS)
endif()

set_target_properties(lua-ddcl PROPERTIES PREFIX "")
target_include_directories(lua-ddcl PUBLIC ${LIB_PATH})
target_include_directories(lua-ddcl PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../include)
target_include_directories(lua-ddcl PUBLIC ${SRC_PATH})
target_link_libraries(lua-ddcl PUBLIC lualib)
target_link_libraries(lua-ddcl PUBLIC ddcl)
set_target_properties(lua-ddcl PROPERTIES OUTPUT_NAME ddcl)



